#pragma once

#include "Instruction.h"

///
/// @brief 单操作数指令
///
class SingleInstruction : public Instruction {

public:
    /// @brief 构造函数
    /// @param _op 操作符
    /// @param _result 结果操作数
    /// @param _srcVal 源操作数
    SingleInstruction(Function * _func, IRInstOperator _op, Value * _srcVal, Type * _type);

    /// @brief 转换成字符串
    void toString(std::string & str) override;
};